//
//  Config.h
//  Shuaiche
//
//  Created by zzs on 2017/10/25.
//  Copyright © 2017年 zzs. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "User+CoreDataProperties.h"
#import <MagicalRecord/MagicalRecord.h>

NS_ASSUME_NONNULL_BEGIN

@interface Config : NSObject

@property (nonatomic, strong) User *user;
@property (nonatomic, strong) NSArray *scUserUnionIds;

@property (nonatomic, assign) BOOL isPresentedWhenSessionExpired;

+ (void)userLogout;

+ (void)showLoginWhenSessionExpired;

+ (void)fetchMaintenEnable;

- (NSString *)merchantNameOfUser;
- (NSString *)addressOfUser;


+ (void)savePhotoToCustomAlbumWithName:(NSString *)albumName photo:(UIImage *)photo;



SINGLETON_FOR_DECLARAION(Config)

@end

NS_ASSUME_NONNULL_END
